/*    */ package com.wgcloud.service;
/*    */ 
/*    */ import com.wgcloud.entity.MailSet;
/*    */ import com.wgcloud.mapper.MailSetMapper;
/*    */ import com.wgcloud.util.DateUtil;
/*    */ import com.wgcloud.util.UUIDUtil;
/*    */ import java.util.List;
/*    */ import java.util.Map;
/*    */ import org.springframework.beans.factory.annotation.Autowired;
/*    */ import org.springframework.stereotype.Service;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ @Service
/*    */ public class MailSetService
/*    */ {
/*    */   @Autowired
/*    */   private MailSetMapper mailSetMapper;
/*    */   
/*    */   public void save(MailSet mailSet) throws Exception {
/* 26 */     mailSet.setId(UUIDUtil.getUUID());
/* 27 */     mailSet.setCreateTime(DateUtil.getNowTime());
/* 28 */     mailSet.setFromMailName(mailSet.getFromMailName().trim());
/* 29 */     mailSet.setFromPwd(mailSet.getFromPwd().trim());
/* 30 */     mailSet.setToMail(mailSet.getToMail().trim());
/* 31 */     mailSet.setSmtpHost(mailSet.getSmtpHost().trim());
/* 32 */     this.mailSetMapper.save(mailSet);
/*    */   }
/*    */ 
/*    */   
/*    */   public int deleteById(String[] id) throws Exception {
/* 37 */     return this.mailSetMapper.deleteById(id);
/*    */   }
/*    */   
/*    */   public List<MailSet> selectAllByParams(Map<String, Object> params) throws Exception {
/* 41 */     return this.mailSetMapper.selectAllByParams(params);
/*    */   }
/*    */   
/*    */   public int updateById(MailSet mailSet) throws Exception {
/* 45 */     return this.mailSetMapper.updateById(mailSet);
/*    */   }
/*    */ }


/* Location:              /Users/zhangyongxin/soft-install/wgcloud/wgcloud-v3.3.5/server/bank/wgcloud-server-release.jar!/BOOT-INF/classes/com/wgcloud/service/MailSetService.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */